// components/gamebutton/gamebutton.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
  },

  /**
   * 组件的初始数据
   */
  data: {
    bottom:[{
      id:0,
      text:"首页",
      selectIcon:"https://646f-dongyingyin-3khfy-1300530180.tcb.qcloud.la/index_icon/zhuye.jpg?sign=134eb0ad4e6ec746f2830dca57809a32&t=1620734709",
      selectedIcon:"https://646f-dongyingyin-3khfy-1300530180.tcb.qcloud.la/index_icon/zhuye1.jpg?sign=2ac08371bef01da02fc663b38fa6e130&t=1620734724",
    },{
      id:1,
      text:"活动",
      selectIcon:"https://646f-dongyingyin-3khfy-1300530180.tcb.qcloud.la/index_icon/huodong.jpg?sign=9e9595e51ac017c2b7c78867152db708&t=1620734764",
      selectedIcon:"https://646f-dongyingyin-3khfy-1300530180.tcb.qcloud.la/index_icon/huodong1.jpg?sign=0150e7ccac9e47316b76c203efa9fe54&t=1620734775",
    },{
      id:2,
      text:"收藏",
      selectIcon:"https://646f-dongyingyin-3khfy-1300530180.tcb.qcloud.la/index_icon/shoucang.jpg?sign=f20e3c5f4e8a13ea62c7ed0fb4bb2825&t=1620734800",
      selectedIcon:"",
    },{
      id:3,
      text:"我的",
      selectIcon:"https://646f-dongyingyin-3khfy-1300530180.tcb.qcloud.la/index_icon/wode.jpg?sign=e1a126d96fc26e62d0772fe604077481&t=1620734814",
      selectedIcon:"",
    }],
    showView: true
  },

  onLoad: function (options) {
    // 生命周期函数--监听页面加载
    showView: (options.showView == "true" ? true : false)
  }
  , onChangeShowState: function () {
    var that = this;
    that.setData({
      showView: (!that.data.showView)
    })
  }
})
